<script>
  import Vue from 'vue'
	export default {
		onLaunch: function() {
			console.log('App Launch');
      //全局参数
      uni.getSystemInfo({
      	success: function(e) {
          Vue.prototype.WinHeight = uni.getSystemInfoSync().windowHeight;
          Vue.prototype.WinWidth = uni.getSystemInfoSync().windowWidth;
      		// #ifndef MP
      		Vue.prototype.StatusBar = e.statusBarHeight;
          Vue.prototype.TitleBar = 44;
      	  Vue.prototype.CustomBar = e.statusBarHeight + 44;
      		
      		// #endif
      		// #ifdef MP-WEIXIN
      		Vue.prototype.StatusBar = e.statusBarHeight;
      		let custom = wx.getMenuButtonBoundingClientRect();
      		Vue.prototype.Custom = custom;
      		Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
      		// #endif		
      		// #ifdef MP-ALIPAY
      		Vue.prototype.StatusBar = e.statusBarHeight;
      		Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
      		// #endif
      	}
      })
      
      
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
  page {
    background: #F5F5F5;
  }
</style>
